home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
src
/
systemidle10.lha
/
SystemIdle
/
test.c
< prev
Wrap
C/C++ Source or Header
|
1995-10-11
|
346b
|
21 lines
extern unsigned long maximum,idle;
main()
{
int percent,n;
printf("Showing system usage for 25 seconds:\n");
if(init_idle())
{
for(n=0;n<25;n++)
{
percent=(int)((idle*100)/maximum);
printf(" %d percent free\n",percent);
Delay(50L);
}
free_idle();
}
}